package com.wuxianedu.wechat.ui;

import com.wuxianedu.wechat.R;
import com.wuxianedu.wechat.base.BaseActivity;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageButton;
import android.widget.ListView;
import android.widget.RelativeLayout;

public class ChanPinJingLiActivity extends BaseActivity {

	ListView listView;
	RelativeLayout chanpinjingli_btn_quit;
	ImageButton iv_chanpinjingli_quit;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_chan_pin_jing_li);
		
		listView = (ListView) findViewById(R.id.list_chanpinjingli);
		chanpinjingli_btn_quit = (RelativeLayout) findViewById(R.id.chanpinjingli_btn_quit);
		iv_chanpinjingli_quit = (ImageButton) findViewById(R.id.iv_chanpinjingli_quit);
		
		listView.setAdapter(new MyCpjlAdapter());
		
		chanpinjingli_btn_quit.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				finish();
			}
		});
		
		iv_chanpinjingli_quit.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				finish();
			}
		});
		
	}
	
	class MyCpjlAdapter extends BaseAdapter{

		@Override
		public int getCount() {
			return 10;
		}

		@Override
		public Object getItem(int position) {
			return null;
		}

		@Override
		public long getItemId(int position) {
			return 0;
		}

		@Override
		public View getView(int position, View convertView, ViewGroup parent) {
			View v = LayoutInflater.from(context).inflate(R.layout.activity_chanpinjingli_list_item, null);
			return v;
		}
		
	}
}
